<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, initial-scale=1, shrink-to-fit=no">
    <div th:replace="~{admin/common :: common-link}"></div>
</head>
<body>

<div class="content">
    <div class="block">
        <div class="block-content">
            <div class="row justify-content-center py-20">
                <div class="col-xl-6">
                    <form id="saveForm" th:action="@{${baseUrl} + '/add.json'}" class="js-validation-bootstrap" method="post">
                        <div class="form-group row">
                            <label class="col-lg-4 col-form-label" for="ipAddress">ip 地址 <span class="text-danger">*</span></label>
                            <div class="col-lg-8">
                                <input type="text" class="form-control" id="ipAddress" name="ipAddress" placeholder="ip 地址" data-bv-notempty="true" data-bv-notempty-message="ip 地址不能为空">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-lg-4 col-form-label" for="remark">描述 </label>
                            <div class="col-lg-8">
                                <textarea id="remark" name="remark" class="form-control" aria-label="With textarea" style="resize: none" placeholder="描述"></textarea>
                            </div>
                        </div>
                        <div class="form-group row">
                            <div class="col-lg-8 text-center">
                                <button type="reset" class="btn btn-secondary">重置</button>
                                <button type="submit" class="btn btn-primary" id="submitBtn">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

        </div>
    </div>
</div>
    <div th:replace="~{admin/common :: common-script}"></div>
    <script type="text/javascript" th:inline="javascript">

        $(function(){
            $("#submitBtn").on("click", function () {
                $.hexo.action.save("saveForm");
            });

        });
    </script>
</body>
</html>